package com.seecoder.BlueWhale.serviceImpl.calPriceStrategy;

public class NoLimitCouponCalculateStrategy implements CalculateStrategy {

    private final Double reduce;
    public NoLimitCouponCalculateStrategy(double reduced) {
        reduce = reduced;
    }

    @Override
    public Double calculate(Double price) {
        return Math.max(price - reduce, 0);
    }
}
